package pac;
/**
 * @time 2016-01-02
 * tink in java page fourty-nine
 * theme:
 * */
public class Test09 {
 public static void main(String[] args){
	 int i1=16;
	 int i2=15;
	 System.out.println("i1="+Integer.toBinaryString(i1));
	 System.out.println("i1="+Integer.toBinaryString(i2));
	 System.out.println("-i1="+Integer.toBinaryString(-i1));
	 System.out.println("-i2="+Integer.toBinaryString(-i2));
	 System.out.println("用十六进制表示i1="+Integer.toHexString(i1));
	 System.out.println("用八进制进制表示i1="+Integer.toOctalString(i1));
 }
}
